﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SAM_Edu.dao;
using System.Data;

namespace SAM_Edu.control
{
   public class ManageFeatures
    {
       public static ulong requestUserRights(string username)
       {
           ulong value = daoFeatures.getUserRights(username);
           return (ulong)value;
       }
       public static DataSet requestFeatureList()
       {

           return daoFeatures.loadFeatureList();
       }

        public static bool requestUpdateUserRights(string username, ulong value)
        {
            bool status = daoFeatures.UpdateUserRights(username, value);
            return status;
        }
    }
}
